package com.jbp.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jbp.utils.PageUtils;
import com.jbp.utils.Query;

import com.jbp.dao.UserBlackDao;
import com.jbp.model.UserBlack;
import com.jbp.service.UserBlackService;


@Service
public class UserBlackServiceImpl extends ServiceImpl<UserBlackDao, UserBlack> implements UserBlackService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserBlack> page = this.page(
                new Query<UserBlack>().getPage(params),
                new QueryWrapper<UserBlack>()
        );

        return new PageUtils(page);
    }

}
